﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetNuke.Tests.UI.WatiN.HTMLTests
{
    public class HTMLContext
    {
        private string upgradeVersion;
        private string type;

        public HTMLContext(string upgradeVersion, string type)
        {
            this.upgradeVersion = upgradeVersion;
            this.type = type;
        }

        public bool IsUpgrade
        {
            get
            {
                return !String.IsNullOrEmpty(upgradeVersion);
            }
        }

        public string Type
        {
            get
            {
                return type;
            }
        }

        public Version UpgradeVersion
        {
            get
            {
                return (!IsUpgrade) ? null : new Version(upgradeVersion);
            }
        }
    }
}
